import request from '@/utils/request'

export function getPage(data) {
  return request({
    url: '/subscribeArticles/page',
    method: 'get',
    params: data
  })
}

export function getSubscribeArticlesTypeList(data) {
  return request({
    url: '/subscribeArticles/getSubscribeArticlesTypeList',
    method: 'get',
    params: data
  })
}


export function save(data) {
  return request({
    url: '/subscribeArticles/save',
    method: 'post',
    data: data
  })
}



export function startCrawerSubscribe(data) {
  return request({
    url: '/subscribeArticles/startCrawerSubscribe',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}

export function startCrawerSubscribeDetailById(data) {
  return request({
    url: '/subscribeArticles/startCrawerSubscribeDetailById',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}

export function restCrawerSubscribeDetailById(data) {
  return request({
    url: '/imageCrawler/restCrawerSubscribeDetailById',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}


export function deleteByIds(data) {
  return request({
    url: '/subscribeArticles/deleteByIds',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}


export function getDetailList(data) {
  return request({
    url: '/subscribeArticles/detail/list',
    method: 'get',
    params: data
  })
}

export function detailDeleteByIds(data) {
  return request({
    url: '/subscribeArticles/detail/deleteByIds?ids=' + data.ids,
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}


